﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lk.Model.Dto
{
 public   class QuestionsDto
    {
        /// <summary>
        /// id
        /// </summary>
        public Guid id { get; set; }
        /// <summary>
        /// 1 单选题,2 多选题
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// title
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// description
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// tag
        /// </summary>
        public string tag { get; set; }
        /// <summary>
        /// 题目难度系数 1 简单  2 普通 3困难 4特别困难
        /// </summary>
        public int? difficulty { get; set; }
        /// <summary>
        /// state
        /// </summary>
        public bool state { get; set; }
        /// <summary>
        /// create_time
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// update_time
        /// </summary>
        public DateTime? update_time { get; set; }


        public Guid questions_category_id { get; set; }

        public List<QuestionsSelectDto> questions_selects { get; set; }

        public List<KnowledgeCategoryDto> knowledge_category { get; set; }

        public int answer_time { get; set; }
        /// <summary>
        /// 是否回答过,完成过习题
        /// </summary>
        public bool? IsAnswered { get; set; }
    }

    public class Questions2Dto
    {
        /// <summary>
        /// id
        /// </summary>
        public Guid id { get; set; }
        /// <summary>
        /// 1 单选题,2 多选题
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// title
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// description
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// tag
        /// </summary>
        public string tag { get; set; }
        /// <summary>
        /// 题目难度系数 1 简单  2 普通 3困难 4特别困难
        /// </summary>
        public int? difficulty { get; set; }
        /// <summary>
        /// state
        /// </summary>
        public bool state { get; set; }
        /// <summary>
        /// create_time
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// update_time
        /// </summary>
        public DateTime? update_time { get; set; }


        public Guid questions_category_id { get; set; }

        public List<QuestionsSelect2Dto> questions_selects { get; set; }

        public List<KnowledgeCategoryDto> knowledge_category { get; set; }

        public int answer_time { get; set; }
        /// <summary>
        /// 是否回答过,完成过习题
        /// </summary>
        public bool? IsAnswered { get; set; }
    }
}
